/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates;

import edu.wpi.first.wpilibj.Servo;

/**
 *
 * @author Miles
 */
// The purpose of GearsServo is to extend Servo and add an easy way to set the Robot to high or low gear
public class GearsServo extends Servo {

    double m_lowGear;
    double m_highGear;

    public GearsServo(int channel, double highGearPosition, double lowGearPosition) {
        super(channel);
        // move highGearPosition and lowGearPosition into variables so that they can be reused later
        m_lowGear = lowGearPosition;
        m_highGear = highGearPosition;
    }

    public void setLowGear() {
        super.set(m_lowGear);
    }

    public void setHighGear() {
        super.set(m_highGear);
    }
}
